package com.sinosoft.dsp.platform.components.portal.iteration;

import com.sinosoft.dsp.system.core.exception.SinoException;
import com.sinosoft.dsp.system.to.IGenericTO;

/**
 * 行记录抽象对象视图
 * 
 * @author 潘巍（Peter Pan）
 * @since 2011-5-13 上午08:52:26
 */
public abstract class SinoAbstractRowDataTableViewBean extends
		SinoAbstractDataTableViewBean<RowDataTableObject> implements
		ISinoRowDataTableViewBean {

	@Override
	public void init(IGenericTO tos) throws SinoException {
		super.init(tos);
		initHeader(tos);
	}

	@Override
	public DataTableHeaderObject[] getHeader() {
		return header.toArray(new DataTableHeaderObject[header.size()]);
	}

	@Override
	public void addHeader(DataTableHeaderObject header) {
		this.header.add(header);
	}
}
